<?php 

class SearchCarnum{
	public $currentSelect = "";
	public $listCar = array();
	function __construct(){
		
	}
	
	function AppendCar($key,$id,$name,$car_datetime,$carnumber,$host,$filename,$isReg){
		$this->listCar[$key] = new CarnumData($id, $name, $car_datetime, $carnumber, $host, $filename, $isReg);
	}
	
	function GetCar($key){
		return $this->listCar[$key];
	}
}

class CarnumData{
	public $id="";
	public $name="";
	public $car_datetime="";
	public $carnumber="";
	public $host="";
	public $filename="";
	public $isReg="";
	
	public $timedatabase="";
	public $calendar="";
	public $year="";
	public $hours="";
	public $minutes="";
	public $timecurren="";
	public $image="";
	public $path="";
	
	function __construct($id,$name,$car_datetime,$carnumber,$host,$filename,$isReg){
		$this->id=$id;
		$this->name=$name;
		$this->car_datetime=$car_datetime;
		$this->carnumber=$carnumber;
		$this->host=$host;
		$this->filename=$filename;
		$this->isReg=$isReg;
	}
}
?>